package com.lsa.letcode.the77.combinations;

import static org.junit.Assert.assertEquals;

import java.util.List;

import org.junit.Test;

import com.lsa.helpers.Utils;

public class CombinationTest {

	@Test
	public void test() {
		Solution s = new Solution();
		
		test(s, 10, 3);
		test(s, 8, 4);
	}

	private void test(Solution s, int n, int k) {
		List<List<Integer>> combs = s.combine(n, k);
		assertEquals(Utils.C_n_k(n, k), combs.size());
	}

}
